Carbon


PBGetForkCBInfoSync

Header: Files.h Carbon status: Supported

Returns information about a specified open fork, or for all open forks.

OSErr PBGetForkCBInfoSync (
    FSForkCBInfoParam *paramBlock
);
paramBlock

A pointer to a parameter block

function result

A result code.

DISCUSSION

The relevant fields of the parameter block are:

If you want to iterate over all open forks (or all open forks for a specific volume), set volume to the desired volume reference number, or the constant kFSInvalidVolumeRefNum to specify all volumes. Set iterator to 0 before the first call. Set desiredRefNum to zero. Upon completion of the call, iterator will be updated and that updated value should be passed into the next call. The call returns errFSNoMoreItems if there are no more open forks to return.

The well-known data fork (i.e. the fork whose name is the empty string, returned by FSGetDataForkName) will always have a forkID of zero. You should not make any assumption about the forkID of the well-known resource fork (whose name is returned by FSGetResourceForkName).

AVAILABILITY

Supported in Carbon. Available in Mac OS 9, and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)